﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DistributeTransaction.Models
{
    public class Product
    {
       // public bool Selected { get; }

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Display(Name = "ProductID")]
        public int ProductID { get; set; }

        [Required(ErrorMessage = "Product Name required.")]
        [StringLength(40)]
        public string ProductName { get; set; }

        [Display(Name = "Decription")]
        public string QuantityPerUnit { get; set; }

        [Display(Name = "Price")]
        public decimal UnitPrice { get; set; }

        [Display(Name = "CategoryID")]
        public int CategoryID { get; set; }

        [Display(Name = "CategoryName")]
        public string CategoryName { get; set; }

        [Display(Name = "Manufacturer")]
        public string CompanyName { get; set; }

        [Display(Name = "Made In")]
        public string MadeIn { get; set; }
        
    }
}